
import VueRouter from 'vue-router'
//导入底部工具栏组件路由
import home from './components/pagebar/home.vue'
import member from './components/pagebar/member.vue'
import search from './components/pagebar/search.vue'
import shopcar from './components/pagebar/shopcar.vue'
import Newlist from './components/news/newlist.vue'
import Newcon from './components/news/newcon.vue'
import piclist from './components/piclist/piclist.vue'
import shop from './components/piclist/shop.vue'
import shopinfo from './components/piclist/shopinfo.vue'
//创建路由对象
var router=new VueRouter({
    routes:[
        {path:'/',redirect:'/home'},
        {path:'/home',component:home},
        {path:'/member',component:member},
        {path:'/search',component:search},
        {path:'/shopcar',component:shopcar},
        {path:'/home/newlist',component:Newlist},
        {path:'/home/newcon/:id',component:Newcon},
        {path:'/home/piclist',component:piclist},
        {path:'/home/shop',component:shop},
        {path:'/home/shopinfo/:id',component:shopinfo},
    ],
    linkActiveClass:"mui-active"
})
export default  router